package com.gitee.designpattern.state.wxmp.entity;

import com.gitee.designpattern.state.wxmp.state.UserState;

/**
 * @author ming.yan-1
 * @version V1.0
 * @Title com.gitee.designpattern.state.wxmp.entity
 * @Description
 * @date 2018/8/22  下午5:14
 */
public class User {
    private UserState userState;

    public User(UserState baseState) {
        this.userState = baseState;
    }

    public UserState getBaseState() {
        return userState;
    }

    public void setBaseState(UserState baseState) {
        this.userState = baseState;
    }

    public void preState(){
        userState.preState(this);
    }

    public void nextState(){
        userState.nextState(this);
    }

}
